#region System
using System;
using System.Collections.Generic;
using CF.Framework.Engine;
using CF.Framework.Engine.Controls;
using CF.Framework.Engine.Effects;
using CF.Framework.Engine.Misc;
using CF.Framework.Engine.Screens;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
#endregion

namespace PSR.App.Screens
{
	internal static class ScreenController
	{
		public static void GotoLogoScreen()
		{
			Goto(new WelcomeScreen());
		}

		public static void GotoMainMenuScreen()
		{
			Goto(new MainMenuScreen());
		}

		public static void Goto(GameScreen destScreen)
		{
			foreach (var screen in GameApp.Current.ScreenManager.GetScreens())
			{
				screen.ExitScreen();
			}

			GameApp.Current.ScreenManager.Clear();
			GameApp.Current.ScreenManager.AddScreen(destScreen);
		}
	}
}
